<template>
  <div class="body-box">
      <div v-if="is_cation == 1">
        <no-cation></no-cation>
      </div>
      <div v-if="is_cation == 2">
        <ye-cation :info ="cation_info"></ye-cation>
      </div>
  </div>
</template>

<script>
import noCation from './cation/no-ation.vue';
import yeCation from './cation/cation.vue';

export default {
  components:{ noCation , yeCation },
  data(){
    return {
      is_cation : 0,
      cation_info : {}
    }
  },
  mounted(){
    this.getData();
  },
  methods:{
    //获取跑团认证信息
    getData(){
      this.ajaxs('cation/getCationInfo',{
        success:(res) => {
          if(res.code) {
            this.is_cation = 2;
            this.cation_info = res.msg;
          }else{
            this.is_cation = 1;
          }
        }
      });
    }
  }
}
</script>

<style>
</style>